import request from '_utils/request'
const getItemLists = (params = {}) => (
  request.get('/itemLists', { params })
)
const getCataLists = (params = {}) => (
  request.get('/cataLists', { params })
)
// 新增商品接口
const cataAdd = (params = {}) => (
  request.post('/cataAdd', params)
)
// 更新商品接口
const cataUpdated = (params = {}) => (
  request.post('/cataUpdated', params)
)
// 删除商品
const deleteItem = (params = {}) => (
  request.post('/deleteItem', params: {index} )
)
export {
  getItemLists,
  getCataLists,
  cataAdd,
  cataUpdated,
  deleteItem
}
